#include <iostream>
#include <iomanip>

using namespace std;
int main(){
	int n,n2;
	cin >> n;
	n2 = 1;
	for(int i=1;i<=n;i++){
		for(int j=1;j<=i;j++){
			cout << setw(4) << n2;
			n2 +=1; 
		}
		cout << endl;
	}
}
